#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
#define rep(i, a, b) for (int i = (a); i <= (b); i++)
#define per(i, a, b) for (int i = (a); i >= (b); i--)
#define endl '\n'

int n, m;
vector<string> a[1005];
vector<int> w;
void parse(string line, vector<string>& words) {
  stringstream ss(line);
  string word;
  while (ss >> word) words.push_back(word);
}
void get_width() {
  rep(i, 1, n) m = max(m, (int)a[i].size());
  w = vector<int>(m, 0);
  rep(j, 0, m - 1) {
    rep(i, 1, n) {
      if (j + 1 > a[i].size()) continue;
      w[j] = max(w[j], (int)a[i][j].size() + 1);
    }
  }
}
void show_result() {
  rep(i, 1, n) {
    int len = a[i].size();
    rep(j, 0, len - 1) {
      if (j < len - 1)
        cout << left << setw(w[j]) << a[i][j];
      else
        cout << a[i][j] << endl;
    }
  }
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  string line;
  n = 0;
  while (getline(cin, line)) {
    if (line.empty()) continue;
    parse(line, a[++n]);
  }
  get_width();
  show_result();
  return 0;
}